#include"Processbar.h"
#include<unistd.h>

double bandwidth=1024*1024*1.0;

void download(double filesize)
{
  double current=0.0;
  while(current<=filesize)
  {
    Procbar(filesize,current);
    usleep(100000);
    current+=bandwidth;
  }

  printf("\n");

}

int main()
{
  //Fortest();
  
  download(20*1024*1024*1.0);
  download(30*1024*1024*1.0);
  download(30*1024*1024*1.0);


  return 0;
}
